
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
	<title>可用可信家庭市场</title>
	<!--                       CSS                       -->
	<!-- Reset Stylesheet -->
	<link rel="stylesheet" href="/static/css/reset.css" type="text/css" media="screen" />
	<!-- Main Stylesheet -->
	<link rel="stylesheet" href="/static/css/style.css" type="text/css" media="screen" />
	<!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
	<link rel="stylesheet" href="/static/css/invalid.css" type="text/css" media="screen" />
	<!--                       Javascripts                       -->
	<!-- jQuery -->
	<script type="text/javascript" src="/static/scripts/jquery-1.3.2.min.js"></script>
	<!-- jQuery Configuration -->
	<script type="text/javascript" src="/static/scripts/simpla.jquery.configuration.js"></script>
	<!-- Facebox jQuery Plugin -->
	<script type="text/javascript" src="/static/scripts/facebox.js"></script>
	<!-- jQuery WYSIWYG Plugin -->
	<script type="text/javascript" src="/static/scripts/jquery.wysiwyg.js"></script>
	<!-- jQuery Datepicker Plugin -->
	<script type="text/javascript" src="/static/scripts/jquery.datePicker.js"></script>
	<script type="text/javascript" src="/static/scripts/jquery.date.js"></script>

	<!-- jQuery -->
	<script src="bower_components/jquery/jquery.min.js"></script>
	<link rel="stylesheet" type="text/css" media="all" href="/static/css/motai.css">
	<script type="text/javascript" src="/static/js/jquery-1.9.1.min.js"></script>
	<script type="text/javascript" charset="utf-8" src="/static/js/jquery.leanModal.min.js"></script>
	<script type="text/javascript" src="/static/scripts/motai.js"></script>
	<style>
		body{
			font-family:黑体;
		}
		.table1 :hover{
			background-color:lightseagreen;
		}
		#cgmain {width:600px;background-color:#fce0ee;margin-bottom:30px;}
	
		.price_ul{
			list-style:none;
			border:hidden;
			width:100%;
			height:50px;
			background-color:#fce0ee;
		}
		.price_ul li {
			float:left;
			text-align:center;line-height:13px;
			font-size:13px;
			list-style-type:none;
			
		}


		.cm {width:120px;}
		.bj {width:80px;}
		.gg {width:120px;}
		.sl {width:80px;}
		.bz {width:200px;}
		.table-b {
			width:580px;
			margin-left:10px;
			border-width: 1px;
			border-color: #a9c6c9;
			border-collapse: collapse;font-size:13px;
			}

		.table-b th{
			border-width: 1px;
			padding: 8px;
			border-style: solid;
			border-color: #8F8F8F;
			line-height:10px;
		}
		.td{
			line-height:5px;
		}
		.table-b td{
			border-width: 1px;
			padding: 8px;
			border-style: solid;
			border-color: #8F8F8F;
			
		}
	</style>
</head>
<body>
<div id="body-wrapper">
	<!-- Wrapper for the radial gradient background -->
	<div id="sidebar">
		<div id="sidebar-wrapper">

			<div id="profile-links">
				<!-- Logo (221px wide) -->
				<a href="#"><img id="logo" src="/static/images/logo.png" alt="Simpla Admin logo" /></a>

				{$_COOKIE['user_name']},你好 <br/>
				| <a href="/index.php/index/index/uexit" title="Sign Out">退出</a> </div>

			 <ul id="main-nav">
                <!-- Accordion Menu -->
                <!--<li> <a href="#/" class="nav-top-item no-submenu">-->
                    <!--&lt;!&ndash; Add the class "no-submenu" to menu items with no sub menu &ndash;&gt;-->
                    <!--Dashboard </a> </li>-->
                {if condition="!empty($powers['order_action'])"}
                <li> <a href="#" class="nav-top-item current"> 订单操作</a>
                    <ul>
                    	
                        <li><a class="current" href="/index.php/index/index/neworder_list">新订单</a></li>
                        <!-- Add class "current" to sub menu items also -->
                        <li><a href="/index.php/index/index/addorder">创建新订单</a></li>
                        <li><a href="/index.php/index/index/allorder_list">所有订单</a></li>
                    </ul>
                </li>
           	{/if}
           	 {if condition="!empty($powers['cg_action'])"}
                <li> <a href="#" class="nav-top-item"> 采购单 </a>
                    <ul>
                        <li><a href="/index.php/index/index/newcg_list">待处理 采购单</a></li>
                        <li><a href="/index.php/index/index/cg_history">采购单历史</a></li>
                    </ul>
                </li>
             {/if}
              {if condition="!empty($powers['table_action'])"}
                <li> <a href="#" class="nav-top-item"> 报表 </a>
                    <ul>
                        <li><a href="/index.php/index/biao/daybiao">日报表</a></li>
                        <li><a href="/index.php/index/biao/yuebiao">月报表</a></li>
                        <li><a href="/index.php/index/biao/nianbiao">年报表</a></li>
                    </ul>
                </li>
               {/if}
                {if condition="!empty($powers['goods_action'])"}
                <li> <a href="#" class="nav-top-item">菜品管理 </a>
                    <ul>
                        <li><a href="/index.php/index/goods/goods">所有菜品</a></li>
                        <li><a href="/index.php/index/goods/categorys">所有分类</a></li>
                    </ul>
                </li>
                {/if}
                 {if condition="!empty($powers['promotion_action'])"}
                 <li> <a href="#" class="nav-top-item"> 推广活动 </a>
                    <ul>
                        <li><a href="/index.php/index/promotion/snlist">SN优惠码</a></li>
                    </ul>
                </li>
                {/if}
                
                <li> <a href="#" class="nav-top-item"> 个人信息 </a>
                    <ul>
                        <li><a href="/index.php/index/index/user_info">查看信息</a></li>
                        <li><a href="/index.php/index/index/update_pass">修改密码</a></li>
                    </ul>
                </li>
       
                {if condition="!empty($powers['super'])"}
                 <li><a href="#" class="nav-top-item"> 用户管理 </a>
                 	<ul>
                        <li><a href="/index.php/index/admin/user_admin">用户权限</a></li>
                    </ul>
                 </li>
                {/if}

            </ul>
            <!-- End #main-nav -->
		</div>
	</div>
	<!-- End #sidebar -->
	<div id="main-content">
		<!-- Main Content Section with everything -->
	
		<!-- Page Head -->
	
		<div class="clear"></div>
		<!-- End .clear -->
		<div class="content-box">
			<!-- Start Content Box -->
			<div class="content-box-header">
				<h3><a href="javascript:history.back()"><a href="javascript:history.back()" ><<返回</a> 订单信息 </a></h3>
				
			</div>
			<!-- End .content-box-header -->
			<div class="content-box-content">
					 <table class="table1" style="font-size:15px; width:73.5%;line-height:30px;">
    
    <tbody>

   	<tr>
   		<td width="120px">单号:</td><td> {$order.order_id}</td>
   	</tr>
   	<tr>
   		<td width="120px">收货码:</td><td> {$order.code}</td>
   	</tr>
   	 <tr>
   		<td width="120px">下单日期: </td><td>{$order.create_time|date="Y-m-d H:i:s",###}</td>
   	</tr>
    <tr>
   		<td width="120px">配送日期: </td>
   		<td>
   			{if condition="!empty($order.ps_date)"}
   			{$order.ps_date|date="Y-m-d",###}
   			{/if}
   		</td>
   	</tr>
    <tr>
   		<td width="120px">配送时间:</td><td>
   			
   			{if condition="$order.ps_time == 9" /}9:00-10:00
        	{elseif condition="$order.ps_time == 10" /}10:00-11:00
        	{elseif condition="$order.ps_time == 11" /}11:00-12:00
        	{elseif condition="$order.ps_time == 15" /}15:00-16:00
        	{elseif condition="$order.ps_time == 16" /}16:00-17:00
        	{elseif condition="$order.ps_time == 17" /}17:00-18:00
        	
        	{/if}
   		</td>
   	</tr>
   	<tr>
   		<td>用户ID:</td><td class="center"> {$order.uid}</td>
   	</tr>
   	<tr>
   		<td>微信昵称：</td><td class="center">{$order.nickname}</td>
   	</tr>
   	<tr>
   		<td>注册日期：</td><td class="center">{$order.add_time|date="Y-m-d H:i",###}</td>
   	</tr>
    <tr>
   		<td>下单用户名: </td><td class="center">{$order.username}</td>
   	</tr>
    <tr>
   		<td>下单手机号:</td><td class="center">{$order.userphone}</td>
   	</tr>
    <tr>
        <td>收货地址:</td><td class="center">
        	 
        	{$order.address_info.name}<br />
        	{$order.address_info.phone}<br />
        	{$order.address_info.address}{$order.address_info.detail}<br />
        </td>
    </tr>
    <tr>
        <td>客户留言:</td><td class="center">{$order.desc}</td>
    </tr>
   
    <tr>
        <td colspan="2">优惠：
        {if condition="!empty($v['discount_detail'])"}
             {$order['discount_detail']->desc}&nbsp;{$order['discount_detail']->discount_money}
         {/if}
        </td>
    </tr>
    <tr>
         <td>订单状态：</td>
         <td class="center">
        	{if condition="$order.order_status == 0" /}订单失败
        	{elseif condition="$order.order_status == 1" /}订单完成
        	{elseif condition="$order.order_status == 2" /}商家未确认
        	{elseif condition="$order.order_status == 3" /}商家已确认
        	{elseif condition="$order.order_status == 4" /}已取餐
        	{elseif condition="$order.order_status == 5" /}正在配送
        	{elseif condition="$order.order_status == 6" /}退单
        	{elseif condition="$order.order_status == 7" /}商家取消订单
        	{elseif condition="$order.order_status == 8" /}配送员已接单
        	
        	{/if}
        </td>
    </tr>
    <tr>
        <td>支付状态：</td>
        <td class="center"> 
        	 {if condition="$order['paid'] eq 1"}
                                <span class="button_green">已支付</span>
                                {elseif condition="$order['paid'] eq 0"}
                                <span class="button_red">未支付</span>
                                {elseif condition="$order['paid'] eq 2"}
                                 <span class="button_green">线下支付</span>
                                  {elseif condition="$order['paid'] eq 3"}
                                  <span>支付超时或失败</span>

            {/if}
        </td>
       
   	</tr>

  
  
    </tbody>
    </table>
    <!--startprint-->
				<div id="cgmain">
					
					<table class="table-b">
						<thead>
						<tr class="trr">
							<th class="cm">菜单名</th>
							<th class="sl">数量</th>
							<th class="gg">规格</th>
							<th class="bj">单价</th>
							<th class="bj">金额</th>
							
						</tr>
						</thead>
						<tbody>
						{if condition="!empty($order['menu'])"}
						{volist name="order['menu']" id="vo" key="kk" }

						<tr class="trr">

							<td class="td">{$vo.name}</td>
							<td class="td">{$vo.num}</td>
							<td class="td">
								{$vo.guige}
							</td>
							<td class="td">{$vo.price}</td>
							<td class="td">
								{$vo.allprice}
							</td>
							
						</tr>
						{/volist}
							{/if}
						</tbody>
					</table>

						<div class="price_ul" >
							<ul>
						<li style="width:15%;line-height:8px;">原价: {$order.price}</li>
						<li style="width:15%;line-height:8px;">应收: {$order.discount_price}</li>
						<li style="width:30%;line-height:8px;">实收: {$order.online_pay}&nbsp;
						{if condition="$order['pay_type'] eq 'offline'" }
						(线下)
						{elseif condition="$order['pay_type'] eq 'weixin'" }
						(微信)
						{/if}
						</li>
	
						<li style="margin-left:50px;width:20%;line-height:8px;">配送员：
						{if condition="$order['deliver_user'] neq ''" }
							
							{$order['deliver_user']}
							
						{else /}
						{/if}
						</li>
						
							</ul>	
						</div>

				</div>
				<!--endprint-->	
    			
			</div>
			<!-- End .content-box-content -->
		</div>
		<!-- End .content-box -->



	</div>
	<!-- End #main-content -->
</div>
       

</body>
</html>